package com.jz.netthings.bloodsources.mapper;

import com.jz.netthings.bloodsources.bean.XyLink;
import com.jz.netthings.bloodsources.bean.XyRemind;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 献浆提醒记录 Mapper 接口
 * </p>
 *
 * @author 张凡
 * @since 2019-08-03
 */
public interface XyRemindMapper extends BaseMapper<XyRemind> {

    public List<XyRemind> queryByCondition(
            @Param("remindNurseId")Integer remindNurseId,
            @Param("remindNurseDeptId")String remindNurseDeptId,
            @Param("overRemindTimeLess")String overRemindTimeLess,
            @Param("overRemindTimeGreater")String overRemindTimeGreater,
            @Param("remindDateLess")String remindDateLess,
            @Param("remindDateGreater")String remindDateGreater,
            @Param("remindNurseName")String remindNurseName,
            @Param("remindProviderName")String remindProviderName,
            @Param("remindStatus")Integer remindStatus,
            @Param("currentPage")int currentPage,
            @Param("pageSize")int pageSize);

    public Integer queryByCount(
            @Param("remindNurseId")Integer remindNurseId,
            @Param("remindNurseDeptId")String remindNurseDeptId,
            @Param("overRemindTimeLess")String overRemindTimeLess,
            @Param("overRemindTimeGreater")String overRemindTimeGreater,
            @Param("remindDateLess")String remindDateLess,
            @Param("remindDateGreater")String remindDateGreater,
            @Param("remindNurseName")String remindNurseName,
            @Param("remindProviderName")String remindProviderName,
            @Param("remindStatus")Integer remindStatus
            );

    public List<XyRemind> loadXyRemindToCache();

    public Boolean updateByProviderId(@Param("xyRemind")XyRemind xyRemind);

}
